package com.zl.task.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.task.dto.EnterpriseDTO;
import com.zl.task.pojo.ServiceEnterprised;
import com.zl.task.vo.EnterprisedLoginVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yinlingeng
 * @since 2021-07-23
 */
public interface IServiceEnterprisedService extends IService<ServiceEnterprised> {
    /**
     * 企业登录
     * @param userName -
     * @param password -
     * @return EnterprisedLoginVO
     */
    EnterprisedLoginVO getEnterprised(String userName, String password) throws Exception;

    /**
     * 用户登录
     * @param userName -
     * @param password -
     * @param userType -
     * @return Object
     * @throws Exception -
     */
    Object userLogin(String userName, String password,String userType) throws Exception;

    /**
     * 企业信息维护（修改）
     * @param  enterpriseDTO -
     * @return Boolean
     * @throws Exception -
     */
    Boolean updateEnterprised(EnterpriseDTO enterpriseDTO) throws Exception;

    /**
     * 根据id查询用户
     * @param id -
     * @return ServiceEnterprised
     */
    ServiceEnterprised getEnterprisedById(String id);

    /**
     *
     * @return List<ServiceEnterprised>
     */
    List<ServiceEnterprised>  listEnterprised();



}
